<?php

namespace App\Http\Controllers\Client\Common;

use App\Http\Controllers\ClientController;
use Illuminate\Support\Facades\DB;

class HistoryExploreBeforeController extends ClientController
{

    public function index()
    {
        // 查询我的所有店铺
        $shops = DB::table('shop')
            ->where('we_id','=',$this->we_id)
            ->select('shop_id as value','shop_name as text')
            ->get()
            ->toArray();

        return $this->setReturnJson(0,'success',$shops);

    }

}
